package lab02.test12;

/**
 * Created by 婷婷 on 2017/10/20.
 */
public class Test12 {
    public static void main(String[] args) {
        Circle circle = new Circle();
        circle.radius = 1.0;
        System.out.println("圆的面积："+circle.area());
        System.out.println("圆的周长："+circle.perimeter());

        Rectangular rectangular = new Rectangular();
        rectangular.width = 3.0;
        rectangular.height = 4.0;
        System.out.println("矩形的周长："+rectangular.perimeter());
        System.out.println("矩形的面积："+rectangular.area());
    }
}
